package com.example.myspringpro.enums;

import lombok.Data;

/**
 * @Description
 * @Author allenhu <huxiangneng@163.com>
 * @Date 2019/04/30
 * @Version V1.0.0
 **/
public enum UserSexEnum {
    /**
     * 男
     */
    MALE(0, "男"),
    /**
     * 女
     */
    FEMALE(1, "女");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    UserSexEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
